package com.AJava1710D.testHash;

import java.util.HashMap;

/**
 * 作者: LCG
 * 日期: 2020/6/27 11:58
 * 描述:
 */
public class TTTTY {

    public static void main(String[] args) {

        UserOO userOO=new UserOO("张三");

        UserOO userO1=new UserOO("张三");

        //System.out.println(userOO==userO1);

        System.out.println(userOO.equals(userO1));

        HashMap<UserOO,Object> hashMap=new HashMap<>();


        hashMap.put(userOO,"PPPPP");

        hashMap.put(userO1,"UUUUU");


        System.out.println(hashMap.size());


    }

}
